﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OrdenCompraReadForm.aspx.cs" 
Inherits="UILGestion.ObraAdmin.OrdenCompras.OrdenCompraReadForm" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Assembly="ExtAspNet" Namespace="ExtAspNet" TagPrefix="ext" %>

<%@ Register src="~/Control/menuObraCtrl.ascx" tagname="menuObraCtrl" tagprefix="uc1" %>
<%@ Register src="../../Control/EnvioCorreoPanel.ascx" tagname="EnvioCorreoPanel" tagprefix="uc2" %>
<%@ Register src="../../Control/OrdenAnticipoListGrid.ascx" tagname="OrdenAnticipoListGrid" tagprefix="uc3" %>
<%@ Register src="../../Control/OrdenAnticipoPanel.ascx" tagname="OrdenAnticipoPanel" tagprefix="uc4" %>
<%@ Register src="../../AlmacenAdmin/NotaIngresoListGrid.ascx" tagname="NotaIngresoListGrid" tagprefix="uc5" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Orden de Compra</title>
 <link href="../../css/main.css" rel="stylesheet" type="text/css" />
 <link rel="stylesheet" type="text/css" href="../../estilos/_common/styles/fonts.css" />
 <link rel="stylesheet" type="text/css" href="../../estilos/_common/styles/global.css" />
 <link rel="stylesheet" type="text/css" href="../../estilos/_common/styles/theme.css" />
 <link href="../../css/default.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/SearchResult.js" type="text/javascript"></script>

    
 
 
 <script type="text/javascript">
<!--

             function goPage() {

                 var idObra = document.getElementById("idObra").value;
                 var internalid = document.getElementById("internalid").value;
                 window.open('../../Rpt/PrintForm.aspx?type=OC&id=' + internalid.toString() + '&idObra=' + idObra);
             }

-->
</script>
</head>
<body>
    <form id="form1" runat="server">
    <uc1:menuObraCtrl ID="menuObraCtrl1" runat="server" />
     <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"
      EnableScriptGlobalization="true" EnablePageMethods="true"
       EnablePartialRendering="true" />
       
   <asp:Panel ID="pnlMain" runat="server"
   Visible="false"
                CssClass="Heading secTitle AreaHeading ms-crm-List-Header "  >
<asp:Label ID="Label1" runat="server" Text="ORDEN COMPRA" 
            style="font-size: large; color: #960818"></asp:Label>
</asp:Panel>
 <asp:Panel ID="PanelButtom" runat="server" Visible="false"    class="ms-crm-Form-Body" >
              
     
                 <table  width="100%">
                 <tr>
                 <td  width="80%">
                 
                   <table >
<tr>
<td>
    <asp:Button ID="refreshButton" runat="server" Text="Restablecer" CssClass="ms-crm-List-Header" 
        onclick="refreshButton_Click"    /></td>

        <td>
    <asp:Button ID="EditarButton" runat="server" Text="Editar" Visible="false"  CssClass="ms-crm-List-Header" 
        onclick="EditarButton_Click"    />
        </td>
<td>
    <asp:Button ID="nuevoButton" runat="server" Text="Nuevo" CssClass="ms-crm-List-Header" 
        onclick="nuevoButton_Click"  /></td>
<td>
   </td>
 
 <td>
    <asp:Button ID="AprobarButton" runat="server" Text="Aprobar" CssClass="ms-crm-List-Header" OnClientClick="return confirm('Usted quiere Aprobar la Orden de Compra?')"
        onclick="aprobarButton_Click"  /></td>



 <td>
    <asp:Button ID="EliminarButton" runat="server" Text="Eliminar"  CssClass="ms-crm-List-Header" 
      OnClientClick="return confirm('Usted quiere eliminar?')" onclick="EliminarButton_Click" 
        /></td> 

        

 <td>

 
        </td>
        <td></td>
        <td>
         <a href="#"    onclick="goPage();return true"><img  src="../../Images/printer.gif"></image></a>
        </td>
</tr>
</table>
                 </td>
                 <td>
                   <table align="left" >
            
            <tr>
                <td>
                    <asp:Button ID="anteriorButton" runat="server"  Text="Anterior"  OnClick="anteriorButton_Click" CssClass="ms-crm-List-Header" />
                </td>
                <td>
                    <asp:Button ID="siguienteButton" runat="server"  Text="Siguiente" OnClick="siguienteButton_Click" CssClass="ms-crm-List-Header" />
                </td>
            </tr>
        </table>  
                 </td>
                 </tr>
                 </table>
               
   </asp:Panel>
                
    <asp:Panel ID="PanelBody" runat="server" Visible="false" BackColor="white" >
      <input id="internalid" type="hidden" runat="server" />
      <input id="idObra" type="hidden"  runat="server"/>

                <table  >
                <tr>
                <td >
      <table   >
          <tr>
              <td  align="right" width="120px"  >
                  Numero: </td>
              <td  width="200px" align="left">
               <b style="font-size:medium">  <asp:Label ID="numeroLabel" runat="server" ></asp:Label></b>
                  
              </td>
              <td  align="right" width="100px">
                  Moneda: </td>
              <td width="100px">
                  <asp:Label ID="monedaLabel" runat="server" Text="Label"></asp:Label>
              </td>
              <td align="right" width="90px">
                  Fecha Contrato: </td>
              <td width="150px" align="left">
                  <asp:Label ID="fechaContratoLabel" runat="server" Text=""></asp:Label>
              </td>
          </tr>
          <tr>
              <td  align="right" >
                  Fecha: </td>
              <td width="200px" align="left" >
                  <asp:Label ID="fechaLabel" runat="server" Text="Label"></asp:Label>
              </td>
              <td  align="right" width="100px">
                  T/C: </td>
              <td width="100px">
                  <asp:Label ID="tipoCambioLabel" runat="server" Text="Label"></asp:Label>
              </td>
              <td align="right" width="90px">
                  Comparativo: </td>
              <td width="150px" align="left">
                  <asp:HyperLink ID="comparativoLNK" runat="server" ForeColor="Blue"></asp:HyperLink>
                  
              </td>
          </tr>
          <tr>
              <td  align="right" valign="top">
                  Proveedor: </td>
              <td width="200px" align="left" >
                  
                   <asp:HyperLink ID="proveedorTXT" runat="server" ForeColor="Blue">
                                   </asp:HyperLink>
              </td>
              <td  align="right" valign="top" width="100px">
                  Estado  </td>
              <td valign="top" width="100px">
                  <input id="idComparativo" type="hidden" runat="server" />
                  <asp:Label ID="estadoLabel" runat="server" Text="" Font-Bold="true" />
              </td>
               <td align="right" width="90px">
                   Autorizado: 
              </td>
              <td width="150px" align="left">
                  <asp:Label ID="autorizadorLabel" runat="server" Text="" 
                      style="font-weight: 700"></asp:Label>
              </td>
          </tr>
          <tr>
              <td  align="right">
                  Contacto: </td>
              <td width="200px" align="left" >
                  <asp:Label ID="proveedorContLabel" runat="server"></asp:Label>
              </td>
              <td  align="right" width="100px">
                  Partida: </td>
              <td width="100px">
                  
                  <asp:HyperLink ID="EstructuraLabel" runat="server" ForeColor="Blue" Width="150px"></asp:HyperLink>
              </td>
               <td align="right" width="90px">
                   Revisado: </td>
              <td width="150px" align="left">
                  <asp:Label ID="revisadoLabel" runat="server" Text=""></asp:Label>
              </td>
          </tr>
          <tr>
              <td  align="right">
                  Forma Pago: </td>
              <td width="200px" align="left" >
                  <asp:Label ID="formaPagoLabel" runat="server"></asp:Label>
              </td>
              <td  align="right" width="100px">
                  Centro Costo: </td>
              <td width="100px">
                  <asp:Label ID="centroCostoLabel" runat="server" Text=""></asp:Label>
              </td>
               <td align="right" width="90px">
                   Activo: </td>
              <td width="150px" align="left">
                  <asp:CheckBox ID="activoCheckBox" runat="server" Enabled="false" />
              </td>
          </tr>
          <tr>
              <td align="right">
                  O/C Anticipo:</td>
              <td align="left" width="200px">
                  <asp:CheckBox ID="anticipochk" runat="server" Enabled="false" />
              </td>
              <td align="right" width="100px">
                  Fecha Entrega: </td>
              <td width="100px" >
                  <asp:Label ID="fechaEntregaLabel" runat="server" Text=""></asp:Label></td>
              <td width="90px">
                  </td>
          </tr>
          <tr>
          <td align="right">
              Observación Impresa: 
          </td>
          <td colspan="5" align="left" width="200px">
                <asp:Label ID="observacionLabel" runat="server" Text=""></asp:Label>
          </td>


         
          </tr>

          <tr>
              <td align="right">
                  Observación Interna:</td>
              <td align="left" colspan="5" width="200px">
                  <asp:Label ID="observacionInterLBL" runat="server" Text=""></asp:Label>
              </td>
          </tr>

      </table>
                 </td>
                 <td valign="middle" width="150px" align="left">
                 
                 
    <table width="100%"   class="PanelTotales" >
        <tr>
            <td align="right" width="35px" >
                &nbsp;</td>
            <td align="right" width="100%">
                &nbsp;</td>
        </tr>
        <tr>
            <td align="right" width="100px">
                SubTotal:
            </td>
            <td align="right" width="100%">
                <asp:Label ID="subTotalLabel" runat="server" Text="Label"></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="right">
                IGV: </td>
            <td align="right" width="100%">
                <asp:Label ID="igvLabel" runat="server" Text="Label"></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="right" >
                Total: </td>
            <td align="right" width="100%">
                <asp:Label ID="totalLabel" runat="server" Text="Label"></asp:Label>
            </td>
        </tr>
        <tr>
            <td align="right" >
                &nbsp;</td>
            <td align="right" width="100%">
                &nbsp;</td>
        </tr>
    </table>
    </td>
    </tr> 
    </table>
    


    <asp:TabContainer ID="TabContainer1" runat="server" Width="100%" ActiveTabIndex="0"><asp:TabPanel ID="TabRecursos"    runat="server" HeaderText="Insumos" ><ContentTemplate>
        
 
        <asp:UpdatePanel ID="itemUpdatePanel" runat="server" UpdateMode="Conditional"><ContentTemplate>

    

<asp:GridView ID="itemOrdenCompraGridView" runat="server" AutoGenerateColumns="False" 
                ShowHeader="true" ShowHeaderWhenEmpty="true" SkinID="GridView"><Columns>
             
              <asp:TemplateField>
              
              <ItemTemplate>
              
               <asp:Hyperlink runat= "server"  ForeColor="Blue"
                Text='<%# DataBinder.Eval(Container.DataItem,"codigo").ToString()%>'  
                 Target="_self"  ID="Hyperlink3" 
                 NavigateUrl='<%# DataBinder.Eval(Container.DataItem,"formulario").ToString() %>' />  

              </ItemTemplate>
              </asp:TemplateField>



               

               <asp:BoundField DataField="descripcion" headerText="DESCRIPCION" 
            ItemStyle-Width="350px" />
               

               <asp:BoundField DataField="unidad" headerText="UNID." />
               

               <asp:BoundField DataField="cantidadStr" DataFormatString="{0:N}" 
            HeaderStyle-Width="90px" headerText="CANTIDAD"  HeaderStyle-HorizontalAlign="Right"
            ItemStyle-HorizontalAlign="Right" />
               

               <asp:BoundField DataField="precioNoIGVStr" DataFormatString="{0:N}" 
            HeaderStyle-Width="90px" headerText="PRECIO UNIT." HeaderStyle-HorizontalAlign="Right" 
            ItemStyle-HorizontalAlign="Right" />
                

                <asp:BoundField DataField="precioInclIGVStr" DataFormatString="{0:N}" 
            HeaderStyle-Width="90px" headerText="PRECIO UNIT."  HeaderStyle-HorizontalAlign="Right"
            ItemStyle-HorizontalAlign="Right" />
                

                <%--<asp:BoundField DataField="descuentoStr" 
                headerText="DESC"  HeaderStyle-Width="90px" ItemStyle-HorizontalAlign="Right"
                 DataFormatString="{0:N}"/>
                --%> 
                 
 
                 <asp:BoundField DataField="subMontoStr" DataFormatString="{0:N}" 
            HeaderStyle-Width="90px" headerText="SUBTOTAL"  HeaderStyle-HorizontalAlign="Right"
            ItemStyle-HorizontalAlign="Right" />

                 



                 <asp:BoundField DataField="IGVItemStr" DataFormatString="{0:N}"  ItemStyle-BackColor="LightGoldenrodYellow"
            HeaderStyle-Width="90px" headerText="IGV" ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Right" />
                 

                 <asp:BoundField DataField="subMontoIGVStr" DataFormatString="{0:N}"  ItemStyle-BackColor="LightGoldenrodYellow"
            HeaderStyle-Width="90px" headerText="TOTAL" ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Right" />
                  
                  
 
               

                  
                  </Columns>
    

                  



                  </asp:GridView>



                  
</ContentTemplate>
</asp:UpdatePanel>





        
 

</ContentTemplate>
        
 





</asp:TabPanel><asp:TabPanel ID="TabPanel2" runat="server" HeaderText="Entrega"  ><ContentTemplate>
                  
 
                  
                  

                  <asp:Panel ID="panel23" runat="server">
                      

                      <table><tr><td width="200px">Atencion Entrega: </td><td>
                              

                  <asp:Label ID="atencionLabel" runat="server"></asp:Label></td></tr>
                          

                          <tr><td width="200px">
                              

                  Direccion Entrega mercaderia: </td><td>
                                  

                                  <asp:Label ID="direccionEntregaLabel" runat="server">
                  </asp:Label></td></tr><tr><td width="200px">Direccion Entrega Comprobante: </td>
                              

                              <td>
                                  

                  <asp:Label ID="direccionComprabanteLabel" runat="server"></asp:Label></td></tr>
                          

                          <tr>
                              

                  <td width="200px">Generado Por: </td><td>
                              

                              <asp:Label ID="emisorLabel" runat="server">
                  </asp:Label></td></tr></table></asp:Panel>
                  
 
                  
</ContentTemplate>
            
 





</asp:TabPanel><asp:TabPanel ID="TabPanel5" runat="server" HeaderText="Anticipo"  >
    
    <ContentTemplate>
        
 
        
 
 
         
 
 

 
        
 

        <asp:Button ID="addAnticipoBtn" runat="server" CssClass="ms-crm-List-Header" 
            onclick="addAnticipoBtn_Click" Text="Add Anticipo" />
        



 



        




        <asp:LinkButton ID="link001" runat="server"></asp:LinkButton>
        



 
 



         
 


 
        <asp:ModalPopupExtender ID="anticipoModalPPE" runat="server" 
            BackgroundCssClass="modalBackground" CancelControlID="CancelarAnticipoBtn" 
            DropShadow="True" DynamicServicePath="" Enabled="True" 
            PopupControlID="anticipoPanelPanel" PopupDragHandleControlID="anticipoPanel" 
            RepositionMode="None" TargetControlID="link001" X="0" Y="0"></asp:ModalPopupExtender>
        







 
        







        








        <uc3:OrdenAnticipoListGrid ID="OrdenAnticipoListGrid1" runat="server" 
            DataSourceID="ordenanticipoODS" />
        




 
 
 




         
 





 
 

        <asp:ObjectDataSource ID="ordenanticipoODS" runat="server" EnablePaging="True" 
            SelectCountMethod="Counta" SelectMethod="getOrdenAnticipoList" 
            SortParameterName="sortExpression" typeName="BOL.OrdenCompraBL">
          

          <SelectParameters>
              
<asp:querystringparameter Name="idOrden" querystringfield="id" Type="Int32" />
              
<asp:Parameter Name="startRowIndex" Type="Int32" />
              
<asp:Parameter Name="maximumRows" Type="Int32" />
              
<asp:Parameter Name="sortExpression" Type="String" />
              
            </SelectParameters>
            
          
        </asp:ObjectDataSource>
        





 

 
 
 





         

 
 





 

 
 
    
</ContentTemplate>
    
 
 
 
 
 
 
 



 
            
            
            
            
            
            
            








</asp:TabPanel><asp:TabPanel ID="TabPanel1" runat="server" HeaderText="Facturacion"  >

    

    <ContentTemplate>
        
 
        <asp:LinkButton ID="nuevoFRLinkButton" runat="server" ForeColor="Blue">Nuevo FR</asp:LinkButton>
        
 
        

        <br />
        
 
        

        <asp:GridView ID="documentoGridView" Runat="Server" DataKeyNames="idInternal" 
            SkinID="GridView"><Columns>
                      

                      <asp:HyperLinkField ControlStyle-ForeColor="Blue" 
                    datanavigateurlfields="idInternal,idObra" 
                    DataNavigateUrlFormatString="~/ObraAdmin/RecepcionDoc/RecepcionDocReadForm.aspx?id={0}&amp;idObra={1}" 
                    datatextfield="numRecepcion" HeaderText="FR" ItemStyle-Width="70px" />
                        

                        <asp:BoundField DataField="fecha" DataFormatString="{0:d}" 
                    HeaderText="Fecha" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="75px" />
                         

                         <asp:BoundField DataField="tipoDocumento" HeaderText="T/D" />
                         

                         <asp:BoundField DataField="numDocumento" HeaderText="Documento" />
                         

                         <asp:BoundField DataField="proveedor" HeaderText="Proveedor" />
                         

                         <asp:BoundField DataField="moneda" HeaderText="Moneda" />
                         

                         <asp:BoundField DataField="igvtotal" DataFormatString="{0:N}" 
                    HeaderText="IGV" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="75px" />
                         

                         <asp:BoundField DataField="neto" DataFormatString="{0:N}" 
                    HeaderText="Neto" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="75px" />
                         

                         <asp:BoundField DataField="total" DataFormatString="{0:N}" 
                    HeaderText="Total" ItemStyle-HorizontalAlign="Right" ItemStyle-Width="75px" />
                         

                         <asp:BoundField DataField="fechaEmisionDoc" DataFormatString="{0:d}" 
                    HeaderText="Fecha Emision" ItemStyle-Width="50px" />
                         

                         <asp:BoundField DataField="fechaVencimientoDoc" 
                    DataFormatString="{0:d}" HeaderText="Fecha Vencimiento" 
                    ItemStyle-HorizontalAlign="Right" ItemStyle-Width="75px" />
                         

                         </Columns>
        </asp:GridView>
        
 
    
</ContentTemplate>
    
 





</asp:TabPanel><asp:TabPanel ID="TabPanel3" runat="server" HeaderText="Ingreso Almacen"   >
    
    <ContentTemplate>
        
 
        <asp:HyperLink ID="IngresoAlmacenButton" runat="server" ForeColor="Blue" 
            >Nueva Nota Ingreso</asp:HyperLink>
        

 

        <br />
        
 
 
         <asp:UpdatePanel ID="UpdatePanel1" runat="server"  UpdateMode="Conditional">
         <ContentTemplate>
         <uc5:NotaIngresoListGrid ID="NotaIngresoListGrid2" runat="server"
             
              DataSourceID="NotaIngresoListODS" />

             <asp:ObjectDataSource ID="NotaIngresoListODS" 
              runat="server"
             EnablePaging="True"
              SelectCountMethod="Count" 
              SortParameterName="sortExpression"
             SelectMethod="GetNotaIngresoList" 
             typeName="BOL.NotaIngresoBL" >
               <SelectParameters>
                 <asp:querystringparameter  Name="idOrdenCompra" Type="Int32" querystringfield="id"  />
                 <asp:Parameter Name="startRowIndex" Type="Int32" />
                 <asp:Parameter Name="maximumRows" Type="Int32" />
                 <asp:Parameter Name="sortExpression" Type="String" />

                </SelectParameters>
               </asp:ObjectDataSource>
         </ContentTemplate>
         <Triggers>
         <asp:AsyncPostBackTrigger ControlID="refreshButton" />
         </Triggers>
         </asp:UpdatePanel>
        

 
    
</ContentTemplate>
    
 





</asp:TabPanel><asp:TabPanel ID="TabPanel4" runat="server" HeaderText="Mensaje"   Font-Size="X-Small">
            

            <ContentTemplate>
                
 
                <asp:LinkButton ID="LinkButton1" runat="server" ForeColor="Blue" 
                    OnClick="envioCorreo">Envio Correo</asp:LinkButton>
                
 
                

                <asp:LinkButton ID="LinkButton2" runat="server" ForeColor="Blue" 
                    OnClick="envioCorreo" />
 
                

                <asp:modalpopupextender ID="EnvioMailModalpopupextender" runat="server" 
                    BackgroundCssClass="modalBackground" CancelControlID="CancelarEnviarEmailBtn" 
                    dropshadow="True" DynamicServicePath="" Enabled="True" 
                    popupcontrolid="envioMailParentPanel" 
                    popupdraghandlecontrolid="envioMailParent" RepositionMode="None" 
                    targetcontrolid="LinkButton2" X="0" Y="0" />
                
 
                

                <asp:GridView ID="MensajeGridView" Runat="Server" DataKeyNames="idInternal" 
                    SkinID="GridView"><Columns><asp:BoundField DataField="idInternal" 
                            HeaderText="idInternal" Visible="false" />
                        

                        <asp:BoundField DataField="fechaCreStr" HeaderText="Fecha" 
                            ItemStyle-HorizontalAlign="Right" ItemStyle-Width="75px" /><asp:BoundField 
                            DataField="desde" HeaderText="Autor" />
                        

                        <asp:TemplateField><ItemTemplate>
                            

                            <table><tr><td align="right">Destinatario:</td><td align="left"><asp:Label 
                                    ID="destinatarioLabel" runat="server" Text='<%# Eval("destinatario")%>'></asp:Label></td></tr>
                                

                                <tr><td align="right">CC:</td>
                                    

                                    <td align="left"><asp:Label ID="ccLabel" runat="server" Text='<%# Eval("cc")%>'></asp:Label></td></tr>
                                

                                <tr><td align="right">Asunto:</td>
                                    

                                    <td align="left"><asp:Label ID="asuntoLabel" runat="server" 
                                            Text='<%# Eval("Asunto")%>'></asp:Label></td></tr>
                                

                                <tr><td align="right">Mensaje:</td>
                                    

                                    <td align="left"><asp:Label ID="mensajeLabel" runat="server" 
                                            Text='<%# Eval("mensaje")%>'></asp:Label></td></tr></table>
                        </ItemTemplate>
                        </asp:TemplateField>
                        

                        <asp:BoundField DataField="archivo" HeaderStyle-Width="90px" 
                            HeaderText="Archivo" />
                    </Columns>
                </asp:GridView>
                
 
            
</ContentTemplate>
            
 





</asp:TabPanel></asp:TabContainer>



                 </asp:Panel>


                      <asp:Panel ID="envioMailParentPanel" runat="server" Height="400px" CssClass="modalPopup" >
  <asp:Panel ID="envioMailParent"   runat="server" Height="400px"  
   Style="background-color:#DDDDDD;border:solid 1px Gray;color:Black">
               <asp:Panel ID="Panel20" runat="server" Height="380px" 
          class="ms-crm-Dialog-Footer ms-crm-Dialog-Footer-Right">
      
             <uc2:EnvioCorreoPanel ID="EnvioCorreoPanel1" runat="server" />
        
      
  
               
           </asp:Panel>
               
              
            <%--  onclick="delRecursoReAgrupado_Click"--%>

          <asp:Panel ID="Panel18" runat="server"   >
        
<table width="100%" >
 <tr  >
               
                <td class=" ms-crm-Dialog-Footer-Right">
               
                     <asp:Button ID="EnviarEmailBtn"  runat="server"  Text="Enviar Correo "  CssClass="ms-crm-List-Header"
                          OnClientClick="return confirm('Seguro que desea Enviar Correo?')" onclick="EnviarEmailBtn_Click" 
                      />
                    <asp:Button ID="CancelarEnviarEmailBtn"  runat="server" Text="Cancelar" CssClass="ms-crm-List-Header"
                    />
                   
                </td>
   </tr>


   
</table>
        </asp:Panel> 

        </asp:Panel>
          </asp:Panel>
   






   
           <asp:Panel ID="anticipoPanelPanel" runat="server" Height="250px" >
  <asp:Panel ID="anticipoPanel"   runat="server" Height="250px"  Width="800px"  
  Style="background-color:#DDDDDD;border:solid 1px Gray;color:Black">
               <asp:Panel ID="Panel1" runat="server" Height="200px" 
          class="ms-crm-Dialog-Footer ms-crm-Dialog-Footer-Right">
      <asp:UpdatePanel ID="anticipoUpdatePanel" runat="server" UpdateMode="Conditional">
      <ContentTemplate>
                <uc4:OrdenAnticipoPanel ID="OrdenAnticipoPanel1" runat="server" />
     </ContentTemplate>
 
      </asp:UpdatePanel>

       
  
               
           </asp:Panel>
               
               <asp:Panel ID="Panel2" runat="server"   >
        
<table width="100%" >
 <tr  >
 <td class=" ms-crm-Dialog-Footer-Right">
                <asp:Button ID="guardarAnticipoBtn"  runat="server"  Text="Añadir Anticipo"  CssClass="ms-crm-List-Header"
                      onclick="guardarAnticipo"    OnClientClick="return confirm('Seguro que desea guardar la Transacción?')" 
                       />
                <asp:Button ID="CancelarAnticipoBtn"  runat="server" Text="Cancelar" CssClass="ms-crm-List-Header"
                       />
                   
                </td>
   </tr>


   
</table>
        </asp:Panel> 

        </asp:Panel>
          </asp:Panel>
   




    
    
   




    
    </form>
</body>
</html>
